from django.db import models
from django import forms
# Create your models here.

#all of the information about a comment and where it goes
class comment(models.Model):
    userComment=models.CharField(max_length=400)
    poster=models.CharField(max_length=20)
    to=models.CharField(max_length=20)
    on=models.CharField(max_length=100)
    def __unicode__(self):
        return self.poster

#form used to fill a new comment object
class commentForm(forms.Form):
    userComment=forms.CharField(max_length=400)
    def __init__(self, userComment,poster,to):
        self.userComment = userComment
        self.poster=poster
        self.to=to
        

